home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: clgonsal@undergrad.math.uwaterloo.ca (Carl Laurence Gonsalves)
- Newsgroups: comp.lang.c,comp.lang.c.moderated,comp.lang.c++
- Subject: Re: Is C/C++ convertor available ???
- Date: 11 Apr 1996 13:56:03 -0500
- Organization: University of Waterloo
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4kjkk3$bp8@solutions.solon.com>
- References: <4k5vt7$a3c@solutions.solon.com> <4kcmib$ova@solutions.solon.com> <4kg88m$ig8@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4kg88m$ig8@solutions.solon.com>,
- William O'Hara <ohara@tiac.ent> wrote:
- >>You heard wrong. g++ is a C++ compiler, not a C++ to C
- >translator, and it has
- >>no such option.
- >
- > I DO NOT use gcc. Yet I wouldn't doubt that
- >there was a feature.. After all C++ is an extension to
- >C which is theortically an extension to itself. :)
- >Classes and such all boil down to structures.. Don't
- >ever get the idea that C++ is its own language. It goes
- >through a tier of translation before compilation.
-
- AFAIK, g++ does not convert C++ into C. I converts C++, and C into an
- intermediate language, which the back-end then converts into the
- assembly/machine code of your target machine. There are other front-ends
- for gcc that will compile Objective-C, Modula-3, and even Ada (or so I've
- heard).
-
- Saying that C++ is not its own language is just silly. It is so it's own
- language. The set of legal C++ programs is different than the set of legal
- C programs, so C++ is a distinct language from C. C++ may be almost a
- superset of C, but it is not equivalent. (C++ is only *almost* a superset,
- because there are legal C programs that are not legal C++ programs)
-
- --
- Carl Laurence Gonsalves - clgonsal@undergrad.math.uwaterloo.ca
- Computer Science, University of Waterloo
- http://www.undergrad.math.uwaterloo.ca/~clgonsal/
- http://www.csclub.uwaterloo.ca/~clgonsal/
-